package com.ohos.connect.devicecloud.iot.modular.device.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 设备表实体
 *
 * @author Dongtao
 * @date  2024/12/17 10:43
 **/
@Getter
@Setter
@TableName("IOT_DEVICE")
public class Device {

    /** 设备ID */
    @TableId
    @ApiModelProperty(value = "设备ID", position = 1)
    private String id;

    /** 产品ID */
    @ApiModelProperty(value = "产品ID", position = 2)
    private String productId;

    /** 设备名称 */
    @ApiModelProperty(value = "设备名称", position = 3)
    private String name;

    /** 设备唯一SN号 */
    @ApiModelProperty(value = "设备唯一SN号", position = 4)
    private String sn;

    /** 设备登录密码 */
    @ApiModelProperty(value = "设备登录密码", position = 5)
    private String password;

    /** 设备认证码ID */
    @ApiModelProperty(value = "设备证书ID", position = 6)
    private String licenseId;

    /** 设备认证码ID */
    @ApiModelProperty(value = "设备证书", position = 6)
    private String license;

    /** 设备物模型数据 */
    @ApiModelProperty(value = "设备物模型数据", position = 7)
    private String modelData;

    /** 设备模型 */
    @ApiModelProperty(value = "设备模型", position = 8)
    private String model;

    /** 设备类型 */
    @ApiModelProperty(value = "设备类型", position = 9)
    private String deviceType;

    /** 设备厂商 */
    @ApiModelProperty(value = "设备厂商", position = 10)
    private String manu;

    /** 设备mac地址 */
    @ApiModelProperty(value = "设备mac地址", position = 11)
    private String mac;

    /** HIV */
    @ApiModelProperty(value = "HIV", position = 12)
    private String hiv;

    /** FWV */
    @ApiModelProperty(value = "FWV", position = 13)
    private String fwv;

    /** HWV */
    @ApiModelProperty(value = "HWV", position = 14)
    private String hwv;

    /** SWV */
    @ApiModelProperty(value = "SWV", position = 15)
    private String swv;

    /** 设备激活状态 */
    @ApiModelProperty(value = "设备激活状态", position = 16)
    private Boolean activated;

    /** 设备注册类型 */
    @ApiModelProperty(value = "设备注册类型", position = 17)
    private String registryType;

    /** 删除标志 */
    @ApiModelProperty(value = "删除标志", position = 18)
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String deleteFlag;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", position = 19)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 创建用户 */
    @ApiModelProperty(value = "创建用户", position = 20)
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    /** 修改时间 */
    @ApiModelProperty(value = "修改时间", position = 21)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 修改用户 */
    @ApiModelProperty(value = "修改用户", position = 22)
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;

    /** 修改用户 */
    @ApiModelProperty(value = "设备状态", position = 23)
    private String status;

}
